package com.rabbiter.oes.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rabbiter.oes.entity.MultiQuestion;
import com.rabbiter.oes.mapper.MultiQuestionMapper;

import java.util.List;

public interface MultiQuestionService extends IService<MultiQuestion> {

    List<MultiQuestion> findByIdAndType(String PaperId);

    IPage<MultiQuestion> findAll(Page<MultiQuestion> page);

    MultiQuestion findOnlyQuestionId();

    int add(MultiQuestion multiQuestion);

    List<MultiQuestion> findRandom(Integer count,String subject);

    List<Integer> findBySubject(String subject, Integer pageNo);

    int edit(MultiQuestion multiQuestion);

    List<MultiQuestion> findSequence(String subject);
}
